<?php

namespace App\Modules\Doctor\Services;

use  App\Modules\Doctor\Models\Doctor;

class DoctorService
{

    public static function getList($data=[]) {
        return Doctor::getList($data);
    }


    public static function getDetails($id){
        return Doctor::getDetails($id);
    }


    public static function add($data=[]){
        return Doctor::add($data);
    }


    public static function modify($data){
        return Doctor::modify($data);
    }

    public static function getByAdminIds($ids) {
        return Doctor::getByAdminIds($ids);
    }

    public static function findById($id) {
        return Doctor::findById($id);
    }

    public static function findByAdminUserId($id) {
        return Doctor::where('admin_user_id',$id)->first();
    }
}